public class YourAccountController {

    public Account getAccount() {
        return [select id, name,
        (select id, firstname, lastname
        from Contacts limit 10)
        from Account where id=
        :system.currentPagereference()
        .getParameters().get('id')];
}

public String getName() {
    return 'My Your Account Controller';
    }
}